﻿@model WI.CandidateManager.Common.Data.Entities.SingleAnswer

@{
    ViewBag.Title = @Resources.Common.CommonAnswerEditSingle;
}

<h2>@Resources.Common.CommonAnswerEditSingle</h2>

@using (Html.BeginForm("EditSingleAnswer", "Tests", new { @AnswerId = Model.Id }, FormMethod.Post))
{
    @Html.ValidationSummary(true)

    <table class="bordered">
        <tr>
            <td class="vertical-header">@Html.LabelFor(model => model.Text)</td>
            <td>@Html.TextAreaFor(model => model.Text, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">@Html.LabelFor(model => model.IsCorrect)</td>
            <td>@Html.CheckBoxFor(model => model.IsCorrect)</td>
        </tr>
    </table>
  
     <p>
        @Html.ActionLink(@Resources.Common.CommonButtonCancel, "EditQuestion", new { @QuestionId = Model.QuestionBase.Id }, new { @class = "common-btn-large BlueColor" }) <input class="common-btn-large BlueColor" type="submit" value=@Resources.Common.CommonButtonSave />
    </p>
}